package com.dcy.daily.skill.java.basicIO;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Locale;
import java.util.Scanner;

/**
 * 临时测试Scanner：
 * 1、将输入分割为令牌，可使用useDelimiter方法来声明分割令牌。
 * @author duanchunyu
 * @version 1.0.0
 * @createTime 2021年08月03日 16:25
 */
public class TemDemo {
    public static void main(String[] args) {
        int i = 2;
        double r = Math.sqrt(i);

        System.out.print("The square root of ");
        System.out.print(i);
        System.out.print(" is ");
        System.out.print(r);
        System.out.println(".");

        i = 5;
        r = Math.sqrt(i);
        System.out.println("The square root of " + i + " is " + r + ".");
    }
}
